﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Olemas.Models;

namespace Olemas.DataModels
{
    public class CityModel
    {
        /// <summary>
        /// Gets all cities from database
        /// </summary>
        public static IEnumerable<City> GetCities()
        {
            var db = new OlemasDatabaseEntities();
            var cities = from city in db.Cities select city;
            return cities;
        }
    }
}